<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>墨盒使用记录管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/jiujiudevice/jiuInkRecord/">墨盒使用记录列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="jiuInkRecord" action="${ctx}/jiujiudevice/jiuInkRecord/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>SN:</label><form:input path="sn" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;
		<label>orderNo:</label><form:input path="orderNo" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;
		<label>OpenId:</label><form:input path="memberId" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;
		<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
	</form:form>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered ">
		<thead><tr><th>订单号</th><th>设备名称</th><th>设备SN</th><th>设备状态</th><th>加墨状态</th><th>墨盒数据</th><th>会员OpenId</th><th>创建时间</th></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="jiuInkRecord">
			<tr>
				<td style="color:#06c">${jiuInkRecord.orderNo}</td>
				<td>${jiuInkRecord.snName}</td>
				<td>${jiuInkRecord.sn}</td>
				<td style="color:#06c">${jiuInkRecord.snStatus == '0' ? '关闭' : '开启'}</td>
				<td style="color:#06c">${jiuInkRecord.inkStatus == '0' ? '关闭' : '开启'}</td>
				<td>${jiuInkRecord.inkMessage }</td>
				<td>${jiuInkRecord.memberId}</td>
				<td><fmt:formatDate value="${jiuInkRecord.createTime }" type="both"/>   </td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
